package com.chhuang.core.method;
/**
 * @ClassName ChSqlMethod
 * @Description 支持sql方法
 * @Author Darren Huang
 * @Date 2022/11/23 23:28
 * @Version 1.0
 */

public enum ChSqlMethod {

    SELECT1_LIMIT1("select1Limit1", "查询是否存在满足条件记录", "<script>%s SELECT 1 FROM %s %s limit 1 %s\n</script>");

    private final String method;
    private final String desc;
    private final String sql;

    ChSqlMethod(String method, String desc, String sql) {
        this.method = method;
        this.desc = desc;
        this.sql = sql;
    }

    public String getMethod() {
        return method;
    }

    public String getDesc() {
        return desc;
    }

    public String getSql() {
        return sql;
    }
}
